drivers/char: add RX support to the XHCI driver
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Mon, 26 Sep 2022 09:12:03 +0000 (11:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 26 Sep 2022 09:12:03 +0000 (11:12 +0200)
commitd88e2aa4eafcec282554042e49e2bac001c9bd6e
treeafac8fbc4e02dd32e2c6f736e8c20f42d914d92f
parent3a1a7b809ffa4251a9673858a75b161c49c6c241
drivers/char: add RX support to the XHCI driver

Add another work ring buffer for received data, and point IN TRB at it.
Ensure there is always at least one pending IN TRB, so the controller
has a way to send incoming data to the driver.
Note that both "success" and "short packet" completion codes are okay -
in fact it will be "short packet" most of the time, as the TRB length is
about maximum size, not required size.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
docs/misc/xen-command-line.pandoc
xen/drivers/char/xhci-dbc.c